package com.vca.common.model.vca_product;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品属性值表
 * </p>
 *
 * @author chenBing
 * @since 2022-11-16
 */
@Data
@TableName("vca_product_attr_value")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VcaProductAttrValue对象", description="商品属性值表")
public class VcaProductAttrValue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品ID")
    private Integer productId;

    @ApiModelProperty(value = "商品属性索引值 (attr_value|attr_value[|....])")
    private String suk;


    @ApiModelProperty(value = "英文商品属性索引值 (attr_value|attr_value[|....])")
    private String sukEn;

    @ApiModelProperty(value = "属性对应的库存")
    private Integer stock;

    @ApiModelProperty(value = "销量")
    private Integer sales;

    @ApiModelProperty(value = "属性金额")
    private BigDecimal price;

    @ApiModelProperty(value = "图片")
    private String image;

    @ApiModelProperty(value = "商品编号")
    private String barCode;

    @ApiModelProperty(value = "ISBN编号")
    private String isbnCode;

    @ApiModelProperty(value = "重量")
    private BigDecimal weight;

    @ApiModelProperty(value = "体积")
    private BigDecimal volume;

    @ApiModelProperty(value = "attr_values 创建更新时的属性对应")
    private String attrValue;

    @ApiModelProperty(value = "attr_values 创建更新时的英文属性对应")
    private String attrValueEn;

    @ApiModelProperty(value = "活动类型 0=商品")
    private Integer type;

    @ApiModelProperty(value = "是否删除,0-否，1-是")
    private Boolean isDeleted;


}
